package com.fanjun.learning.multithread.Activity_Object_Pattern;

/**
 * Created by fanjun on 16/10/17.
 */
public class DisplayStringRequest extends Request {
    private String value;
    public DisplayStringRequest(String name, Servant servant, String value) {
        super(name,servant,null);
        this.value = value;
    }

    public void execute() {
        servant.displayString(value);
    }
}
